export class GlobalVariable {
  static readonly BASE_URL: string = 'https://consult-api.itheima.net' // 基础地址
  static readonly TIME_OUT: number = 10000 // 超时时间
  // 加载文本
  static readonly LOADING_TEXT: string = '加载中' // 超时时间

  // 成功判断CODE
  static readonly SUCCESS_CODE: number = 10000 // 判断code

  static readonly HOST_URL: string = 'http://localhost:5173/#'
}
export class HttpUrlVariable {
  static readonly LOGIN_URL: string = '/login/password' // 登录请求
  static readonly LOGIN_CODE_URL: string = '/login' // 验证码登录
  static readonly SEND_CODE_URL: string = '/code' // 验证码地址
  static readonly MY_USER_URL: string = '/patient/myUser' // 我的个人信息地址
  static readonly ARCHIVE_LISR_URL: string = '/patient/mylist' // 患者列表
  static readonly ARCHIVE_DEL_URL: string = '/patient/del/' // 删除患者列表接
  static readonly ARCHIVE_ADD_URL: string = '/patient/add' // 新增患者
  static readonly ARCHIVE_DETAIL_URL: string = '/patient/info/' // 查询详情
  static readonly ARCHIVE_UPDATE_URL: string = '/patient/update' // 编辑接口
  static readonly CONSULT_LIST_URL: string = '/dep/all' // 科室列表
  static readonly UPLOAD_URL: string = '/upload' // 上传路径
  static readonly PRE_ORDER_URL: string = '/patient/consult/order/pre' // 预订单下单地址
  static readonly CREATE_ORDER_URL: string = '/patient/consult/order' // 创建订单地址
  static readonly PAY_URL: string = '/patient/consult/pay' // 支付接口
  static readonly ORDER_DETAIL_URL: string = '/patient/consult/order/detail' // 订单详情
  // 收获地址
  static readonly ADDRESS_LIST_URL: string = '/patient/order/address' // 地址列表
}

export class PACKAGE {
  static readonly ARCHIVE_PACKAGE: string = 'subpkg_archive'
  static readonly CONSULT_PACKAGE: string = 'subpkg_consult'
}
export class PAGE_PATH {
  static readonly LOGIN_PAGE: string = '/pages/login/index' // 登录页面
  static readonly HOME_PAGE: string = '/pages/index/index' // 首页
  static readonly ARCHIVE_LIST_PAGE: string = `/${PACKAGE.ARCHIVE_PACKAGE}/list/index` // 列表页
  static readonly ARCHIVE_FORM_PAGE: string = `/${PACKAGE.ARCHIVE_PACKAGE}/form/index` // 表单页面
  static readonly CONSULT_PAY_PAGE: string = `/${PACKAGE.CONSULT_PACKAGE}/payment/index` // 表单页面

  static readonly ROOM_PAGE: string = `/${PACKAGE.CONSULT_PACKAGE}/room/index`
}
